package com.bytezero.team.junit;











import org.junit.jupiter.api.Test;

import com.bytezero.team.domain.Employee;
import com.bytezero.team.service.NameListService;
import com.bytezero.team.service.TeamException;

/**
 * 
 * @Description  对NameListService 类的测试
 * @author Bytezero·zhenglei!        Email:420498246@qq.com
 * @version
 * @date 下午3:12:19 
 * @
 *
 */
public class NameListServiceTest {
	@Test
	public  void testGetAllEmployees() {
		NameListService service  = new NameListService();
		
		Employee[] employees = service.getAllEmployees();
		
		for(int i = 0; i < employees.length;i++) {
			
			System.out.println(employees[i]);
		}
		
	} 
	
	@Test
	public void testGetEmployee() {
		NameListService  service  = new NameListService();
		int id = 1;
		id = 101;
		try {
			Employee employee = service.getEmployee(id);
			System.out.println(employee);
		} catch (TeamException e) {
			
			System.out.println(e.getMessage());
		}
		
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
